package com.pachong.android.frameworkbase.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Make toast use easily
 *
 * @Author: PV
 * @E-mail: pengveivei@sina.cn
 * @CreateDate: 2016-06-24
 * @Version: 1.0.0
 */
public class EasyToast {

    public static void showToast(Context context, String msg){
        showToast(context, msg, Toast.LENGTH_LONG);
    }

    public static void showToast(Context context, int resId){
        showToast(context, resId, Toast.LENGTH_LONG);
    }

    public static void showToast(Context context, String msg, int length){
        Toast.makeText(context, msg, length).show();
    }

    public static void showToast(Context context, int resId, int length){
        Toast.makeText(context, resId, length).show();
    }



}
